#ifndef __BOARD_PARTITION_H__
#define __BOARD_PARTITION_H__

#include <soc.h>

#define QSPI_MAX_SIZE                           0x1000000               /* 16M */

#define BOOTLOADER_PARTITION_START              CSKY_QSPIMEM_BASE        
#define BOOTLOADER_PARTITION_SIZE               0x31000                 /* 100k bytes */

#define BOOTLOADER_PARAM_PARTITION_START        (BOOTLOADER_PARTITION_START + BOOTLOADER_PARTITION_SIZE) 
#define BOOTLOADER_PARAM_PARTITION_SIZE         0x1000                  /* 4k bytes */

#define APPLICATION_PARTITION_START             (BOOTLOADER_PARAM_PARTITION_START + BOOTLOADER_PARAM_PARTITION_SIZE)            
#define APPLICATION_PARTITION_SIZE              0xE66000                /* 14744K bytes */

#define KV_PARTITION_START                      (APPLICATION_PARTITION_START + APPLICATION_PARTITION_SIZE)       //0xE80000     
#define KV_PARTITION_SIZE                       KV_CONFIG_TOTAL_SIZE    /* 512K bytes */

#define FS_PARTITION_START                      (CSKY_QSPIMEM_BASE + 0x275000)          
#define FS_PARTITION_SIZE                       0x300000  

// #define CUSTOM_PARTITION_START                  (KV_PARTITION_START + KV_PARTITION_SIZE)            
// #define CUSTOM_PARTITION_SIZE                   0x100000                /* 1M bytes */

int print_partiton_table(void);

#endif